/*
 * 产品信息格式化（3分）
 */

#include <stdio.h>

int main() {
	setbuf(stdout, NULL);

	int item_number;
	float unit_price;
	int year, month, day;

	printf("Enter item number:\n");
	scanf("%d", &item_number);

	printf("Enter unit price:\n");
	scanf("%f", &unit_price);

	printf("Enter purchase date (mm/dd/yy):\n");
	scanf("%d/%d/%d", &month, &day, &year);

	printf("Item      Unit     Purchase\n");
	printf("%-9d$ %-9.2f%02d%02d%04d\n", item_number, unit_price, month, day, year);

	return 0;
}